/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Decorator5;

/**
 *
 * @author Marcel
 */
public class SimpleWindow implements Component{

    public void draw() {
        for (int i = 0; i < 10; i++) {
            System.out.print("+");
        }
        System.out.println("");
        for (int i = 0; i < 5; i++) {
            System.out.print("+");
            for (int j = 0; j < 8; j++) {
                System.out.print(" ");
            }
            System.out.print("+");
            System.out.println("");
        }
        for (int i = 0; i < 10; i++) {
            System.out.print("+");
        }
        System.out.println("");
    }
}
